package com.rich.dao;

import java.util.List;

import com.rich.domain.PageBean;
import com.rich.domain.User;

public interface UserDao {
	
	User findUser(String username);

	void save(User user)throws Exception;

	User findByCode(String code)throws Exception;

	void updateUser(User existUser)throws Exception;

	User login(User user)throws Exception;

	List<User> findByPage(PageBean<User> pb);

	int findCount();

	User findByUid(Integer uid);

	void delete(User existUser);
}
